Skip to content

Complete Role D: factorial support, import fix, git recovery tasks, and history cleanup#29

Open
tngwafor wants to merge 9 commits into
cmsc398w:mainfrom
Abdulrahman-Albeladi:feature/tngwafor
Open

Complete Role D: factorial support, import fix, git recovery tasks, and history cleanup#29
tngwafor wants to merge 9 commits into
cmsc398w:mainfrom
Abdulrahman-Albeladi:feature/tngwafor

Conversation

@tngwafor

@tngwafor tngwafor commented Mar 28, 2026

Copy link
Copy Markdown

Summary

This PR completes all Role D requirements and describes my contributions.

Code changes

  • Fixed the missing import in tests/test_calculator.py
  • Updated .gitignore to ignore Python cache files
  • Reverted the bad debug logging commit without removing it from history
  • Added the is_positive helper function to src/validator.py
  • Completed the reflog recovery exercise and merged recovered work

Git workflow tasks completed

  • Created feature branch from starter/role-D
  • Used separate commits for unrelated CP1 changes
  • Reverted the BAD: commit with git revert
  • Moved a commit from main to the feature branch with git cherry-pick
  • Recovered deleted branch work using git reflog
  • Rebased feature branch onto updated main
  • Cleaned commit history with interactive rebase

Validation

  • pytest tests/ passes locally

Notes

  • LEARNINGS-tngwafor.md is included in this branch
  • Commit history was cleaned up before submission

Checklist

  • Checkpoint 1 complete
  • Checkpoint 2 complete
  • Checkpoint 3 complete
  • Checkpoint 4 complete
  • Checkpoint 5 complete
  • Checkpoint 6 complete
  • Tests passing

@ngangi0195

Copy link
Copy Markdown

The PR description is thorough, but it would help to add a short 1-2 sentence summary at the top explaining what this branch is and why it's being merged, rather than just listing what was done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants